package model.collisions.effects;

import model.collisions.Collisionable;
import model.elements.Bullet;
import model.exceptions.CommandFactoryIsNotReady;

/**
 * La clase BulletDie.
 * Mata la bala al chocar contra algun elemento, lo que desencadena la onda expansiva
 */
public class BulletDie implements CollisionEffect {

	/* (non-Javadoc)
	 * @see model.collisions.effects.CollisionEffect#applyFromTo(model.collisions.Collisionable, model.collisions.Collisionable)
	 */
	@Override
	public void applyFromTo( Collisionable collisionee, Collisionable collisioner ) throws CommandFactoryIsNotReady {
		((Bullet)collisioner).die();
	}

}
